loggedIn.login = undefined;

function loggedIn(callback,reload) {
    if (reload === undefined) {
        reload = false;
    }
    if (reload || loggedIn.login === undefined) {
      //  alert('fuck');
        $.getJSON("controllers/login.php",function (data) {
                loggedIn.login = data;
                if (callback) {
                    callback(loggedIn.login); 
                }
        });
    } else {
        callback(loggedIn.login);
    }
}
